﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Template.Infrastructure.Enums
{
    /// <summary>
    /// 排序方向
    /// </summary>
    public enum SortDirection
    {

        Ascending = 0,

        Descending = 1
    }

    /// <summary>
    /// 操作结果类型
    /// </summary>

    public enum OperationResultType
    {
        /// <summary>
        ///   操作成功
        /// </summary>
        [Description("操作成功。")]
        Success = 0,

        /// <summary>
        ///   操作引发错误
        /// </summary>
        [Description("操作引发错误。")]
        Error = 5,

        /// <summary>
        ///   系统出现异常
        /// </summary>
        [Description("系统出现异常。")]
        Exp = 10,

        /// <summary>
        ///   指定参数的数据不存在
        /// </summary>
        [Description("数据源不存在。")]
        QueryNull = 15,


        /// <summary>
        ///   操作取消或操作没引发任何变化
        /// </summary>
        [Description("操作没有引发任何变化。")]
        NoChanged = 20,
    }

    [Description("实体更新类型。")]
    public enum EntityChangeType
    {
        [Description("添加")]
        Insert = 0,

        [Description("更新")]
        Updated = 1,

        [Description("删除")]
        Deleted = 2
    }

}
